package com.common.lib.bean

import java.io.File
import java.io.Serializable

class ApplicationBean : Serializable {

    var id: Int = 0
    var appid: String? = ""
    var download: String? = ""
    var appname: String? = ""
    var icon: String? = ""
    var status: Int = 0
    var sort: Int = 0
    var createtime: Long = 0
    var aid: Int = 0
    var clicknum: Int = 0

    var installStatus = 0//0未安装 1安装中 2已安装
    var downloadStatus = 0 //0表示未下载  1表示下载中 2表示下载完成 3表示下载失败
    var openStatus = 0 //0表示未打开  1表示已打开
    var progress = 0
    var isForeground = false//false表示不在前台  true表示在前台
    var downloadFile: File? = null
    override fun toString(): String {
        return "ApplicationBean(id=$id, appid=$appid, download=$download, appname=$appname, icon=$icon, status=$status, sort=$sort, createtime=$createtime, aid=$aid, clicknum=$clicknum, installStatus=$installStatus, downloadStatus=$downloadStatus, openStatus=$openStatus, progress=$progress, downloadFile=$downloadFile)"
    }


}